package com.hhxy.exception;

public class ExceptionDemo {
    public static void main(String[] args) {
        try {
            divide(2,0);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    public static int divide(int a ,int b){//throws Exception{这是默认写好的
        return a/b;
    }
}
